fixed model delete dependencies