fixed segfault from cli parser