script warning fix