Fixed problem with pages callbacks