Correction for getfielddata and html function