Fixed bug preventing multiple execution of files

Fixed bug preventing multiple execution of files.