fix issues with content script