Fixes bug where deleting a reference from a search did not remove the reference from the list. Should resolve #12.