fix for startup crash