Fix script startup