Minor bug fix on T4 interface