fixed #1265
insert marker direction