corrected the subject deletion bug