fixing crash caused by missing init