Fixed main segfault

Hola!