Fixed segfault errors appearing with selected parameter values