fixed blinking at the edges