fix for sparse