prevent startup crash