fixed filemode