Fix pagination on courses index