Fixed select per page bug