prevent crash on first start