fix Undefined index: action.