fix bug in release method
Merge pull request #18 from pyeremenko/master

Fix bug in release method