Fixed crash at startup.