fix of seg fault on registration