fixed bug on new file