Fix errors in the request options parser