Fix polykernel matrix alignment bug