Fixed improper handling of diffuse transmission matrix