Fix first run exception