crashes when only 1 page