Solved error that produced a segfault.