Fixed SEGFAULT on start