fixed glitch in layout