fixed a bug that HTML is decode at wrong time