Fixed mesh intersection bug