fixing a param parsing error