fixed small issue with deprecated code to type text