isnan fix for flashingStim