Change order and set d before nodejs in detection