Fix script laoding