fixed occasional crash on first update