fixed startup crash