fixed rotation matrix bug