Fix wrong decoding of short int

Fix for issue 88