Many remand prisoners continue to remain in prison beyond the stipulated period, and the Law Department would explore the possibilities of extending legal aid to them, he said.