adding fix for lingering text on deletion bug