fix firstrun errors