Fix wrong logic.