fixing bug in requests