Fixed an issue creating repeated adjustments
Merge pull request #1 from matzipan/master

Fixing some bugs