Fixed crash handling in init file