fix: ensure file mode