fixes issue where it wasn't possible to delete formula referenced to others as similar one. This bug was reported in email communication. Also fixes issue #47.