Fix to the assignment of interface_index