Resolve type error, clear canvas
Merge branch 'animate_error_hotfix'