Removes broken frame numbers from script