Fix NPE on ticks