Simplify detection if two markers have same kind

Ref #5