Fix first segfault