fixed index out of bounds exception
Merge branch 'master' of https://github.com/simonlindberg/puss