fixed a bug that was crashing chrome