Fixed zeros erroneously being written as empty.