Do not write None elements
Fixing precission issue when converting float to a string