fix segfault (2nd try) .. and all because of a small '~'