fixed bug where it displayed an error message when calling help or version