fixed the dc law js