Compiler errors and fix rotation while animating