Fix wrong condition for response check