fixed issue with empty response