Fixed for sparse arrays