Fixed getText bugs