Fixing bug when returning get requests.