fix loading NaN issue