fix marker boundary displacement after restoring the boundary