Added a break in the reslove_dep() and removed exit