fix deserialization problem: parseFloat before testing isNaN