fixed bug for onScreen rotation