halving line bug