fix the default param handling