Fixed segfault
Fixed segfault
Fixed small settings in running