Fix script referencing