minor bug fix for removing text