fix segfault on f?