Fixed an error in the detect dependency function