Script assignment fix