Correct logic for dropping zeros