Fix error on first startup