fix wall intersection