Fixed file creation in Toggle command