Added an extra check for dl_reference