fixed error because rate call didn't return a response