fixed issue if response is not json object