fix a lot without permission param and file rename