Fix crash at start.