Fix discount bug.