[bug] A bug that confused the reference numbers has been removed
[bugfix refactoring] corrected bugs in the citation deletion function