fix to not drop too much data as the whole look ahead buffer was dropped