Fix error deleting data error type