Fixing errors in mutation code