fix error in request class