bugfix in set registry and attributes export