fixed glitch margin select