Fix double processing of files