fix rotation problem