fix deleting dependencies