corrected filemode