Fixed rotating bugs