Fixed a NPE with sparse clone.