this fix the slight visual glitch in pattern