correct error when there are no page nav links