some fixes in blink off delay function
again some fixes