fixed dependency initialization check