fixed char delete bug