bugfix for overlay