Initial values set to NaN instead of 0.0