Ah that makes sense. It did get me some time to figure out. Plus, it looks like it lags after clicking flip button via UI or E key.
Yes, there is a pause between button click and rotation because of my bad code