Changed rotate_inactive_page