Fixes an issue with Buffer calling putInt on the underlying ByteBuffer when it should have called putShort.