fix type error in argument parser