Fix script attributes