Tried to fix inBufferSize problem