Fixed constructor of NNLayer