Fix pluplaod NaN when upload is done