small fix to pagination