Fixed the bug that undermined the possbility of logging the deletion of credentials