fix issue with function loader