Fix /mode logic.