Fix error on first run