fixed a bug related to scaling factors in t4 file