fixed bug for textbox if the default state is active