Fixed setting of rotation of objects.