Fix NaN serialisation and webui path