Fixed compatibility with dnn 7.0.0