Fix crash at first start.