fixed error with loading plot type from command line flag