fixed hsharder segfault