! Make expandPages() nest properly: Fixes #669

Signed-off-by: John Rayes <live627@gmail.com>