fixing overlay fade in fade out