Fixed logic.