Fixed stupid error causing a segfault.