fixed some getNoiseMatrix functions