fix fn tree err