handle zero sparse vector