Fixed a bug on empty responses