[bugfixes] removed segfault crash