fix bug about rending html attributes