core: fixed file mode