fix file manage bugs