Minor bugfix to TextLayer