Fixed the -a function when creating new files