fixed blinking behaviour