fix deleting wrong line