‘Indians lodged in jail despite finishing terms’