Fix executeScript errors sometimes