fixed fn.run bug when no dependencies