Mozilla Textfield bug fix