Fixed a dealing bug.