fix bug when initializing enum variables in main