fix enum handling in marker_helpers