Stopped enums passed in contructor getting overwritten