fix error in mut function

condition where mutation didn't occur forgot to implemented