Corrected filemode