Fixed when the buffer length is less than sector's size