fixed bug in remux method where we are trying to work with files that we deleted due to an error.