Fix for sparse