Fixing errors in the mutation code.