fixed bug with param2 rotation