Fixed pagination check error