Fixed bug. Was comparing actual_dep_index that was string with int