Ugly hack around a race condition in Chrome! (wtf?)