fix optional enum problem