Fix build error from duplicate variable.