Fix bug that writes the previous version again (Causing infinite triggers)
Merge remote-tracking branch 'upstream/master'
Merge pull request #80 from cpf/master

Fix bug that causes previous last changed version to be written again