Fix title logic.