fix wrong variable on empty response check