added bug related to enum