fixed empty features segfault