Fixed an error with pagepicker (see #6)