Fixed errors in file manager