fixed deletion of contracts
fund allocation and contract deletion