Also, could you please make sure that no other function in your plugins and theme caused it? To do it, you can try to reproduce the issue on one of the WordPress’ stock themes (like Twenty Fifteen) with only ACF activated.
I hope this helps 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users