Correcting exception that is thrown when data is all 0s