Junfeng: add transform metrix check