Fixing state drawing text align issue