fixed bugs in FET matrix calculation