fix lag on open