Text offset bug fix