Fix cursor problem for pages