fix segfault on clean data