Adding fix for case where function is self recursive and uses let keyword