Fixed a handler mutation bug.