further fix to set mode in deal