fixed sub-buffering bug?