Fix decode
Merge pull request #9 from MichalPaszkiewicz/master

Fix decode