fixed file initialization