Fixed the unrolling of nnParams.