fix bug in legacy marker parsing