bugfix for emacs overlays