Corrected theta index in transform matrix