bugfix for marker removal