Trim action and corrections for merge action.