fixed crash on unsuccessful initialization