fix duplicate variable name