prevent error for empty responses