fix rare bug where template is not full numslices