fixing flickering safari issues