Fixed a startup crash