fixed a bug in the request class