Branch returns true on false condition!

I understood it now random gets called multiple times. I solve the issue like these thanks for help.