Fixed slow loading on firefox.