fix params and sessions to merge
fix merge