Fixed code of typetext() method, but still I cannot type in fields