Fixed bug in customPages