Fixed roots causing segfaults