fix segfault during installation
changes