Fixes potential segfault on configuration options