Fixed move mutation bug by adding wrapping.