Fixed duplicate bug.