Sync_on_bitmap function in citrix script

Hello All,
I have a requirement where i need a transaction to fail whenever there is mismatch between the hash value of sync_on_bitmap function.
However, my script still passes in BPM even if the image under test changes.
I have used LR 9.52 for scripting, BPm version is 8.02 and citrix agent is 10.

Please let me know if anyone has faced same issues and resolved it.