Fixed segfault lel