fixed AddCustomParameters