fix type conversion issue in TextProperty