try and catch the error
Merge branch 'master' of https://github.com/franklingu/Visual-IDE
fix the bug with rotate