fix undefined index pages

Signed-off-by: Suki <suki@missallsunday.com>