Fixing bugs with response object