on rotate fix