Fix error at first run