Fix on dirtychange event