Fix wrong conditional