fix duplicate variable names.  alwys free recipe on error exit.