fix crash with -v and -help