fixed updating return values
Merge pull request #4 from tebetra/master

fixed updating return values