Fixed off-by-one errors in transp macro