fixing a bug where adding a param with a zero as the value was failing with an exception