fixed delete bug in add_data, rounding error