Handling all-zero data