fixed segmentation fault when user enter nothing in interactive mode.