Ooops, last patche was modifying const object. Fixed it.