fixed error in argument processing