layout seems to work when reducing the anti-gravity and increasing the
threshold to 1. Maybe rendering will point out where the glitch is