fix bug on page content injection scritp