Issue with replace module not working with first block insert

My Ansible playbook has an issue where the replace module is not working with my first ‘blockinfile’ insert. It works fine with all the subsequent inserts. Is this a known issue?