fixed dialog rotation