fix custompage bug

strtolower