fixed bug for higher numbered pages