Fix the bug that injects html multiple times