Fixed a duping bug.