fix bug to mixing process