fix page select bugs