some DNN fixes