fix segfault with tild parsing