fix bug with rotate opening wrong side sometimes