Fix script order