fix html issue with contract update