Fixed logic error in blinking onTick function.