add deleted label and fix wrong reference