Fixed plugin bug when deleting datastore records