Fixed bug when the response doesn't contain any items