Fixed Runtime Segfault