It should be working and I don’t see anything in what you’ve posted that should stop it from working. There must be something on your site that is altering the post ID before it’s getting saved. There are too many possibilities to list, you need to somehow narrow down them down. Could be in the theme or in another plugin.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users