Fix NPE in SpiralTask