fix sparse() zero handling