work around the file permission bug