fixed dependent detroy issues iwth coureses