fixing self reference drop in script