fix linux file access bug