Fixed text getting re-rendered before update