Please explain how such a large number of cases of illegal detention has been possible and what specific measures have been taken to prevent a similar situation from recurring.
请解释怎么可能出现这么多的非法羁押案，已采取哪些具体措施预防再次发生类似的情况。