possible fix for overlay disappearing?