Stack "Pull and redeploy" doesn't recreate the image

Hello to all,
I am using the Portainer stack feature to get the code updates from GitHub and found it extremely useful. But when I press the “Pull and redeploy” button on the stack page, the image is not updated, and the container stack is just restarted without any updates from the repository. To get an updated version, I need first stop the stack, go to images, and delete all images I want to update. Then return to stack and only then “Pull and redeploy” will compile a new version of the code.
Am I missing something because those actions are not so useful as just press a button?