fixed bug in ___rotate