Fix wrong condition