bugfix in enum from string