fix decode html function