bug fix to prevent multiple overlays from being created