Fix bug for crash when calling with improper switches