fixes page returning wrong values