The Immigration and Refugee Board of Canada says it will carry out an independent audit of the process used to reassess the long-term detention of permanent residents and foreigners after two recent court decisions raised concerns that the rules may not always be applied fairly.