Fix error createfile