Fix error on updating needles.
Merge pull request #21 from cwh42/master

Fix error on updating needles.