fixing textarea bug when deleting left too much