Attempt to fix bug in nn_div.