Edit Function bug fix for Functionalizing Entity