Replaced int value by enum value