working on leaky edges bug