fixing another bug in create_nn_params