attempting to fix the bug that creates the first clip of 0 bytes