fixed bug after changing input type to textarea