fixed 'merge params' bug