Asylum seekers have been kept in detention after the courts ordered their release because the Home Office maintains detention is not dissimilar to emergency accommodation. Immigrants with the right to stay in the UK are denied housing and cannot be released. In other cases vulnerable asylum seekers are released onto the streets with nowhere to live. In January 2018 the government repealed a law that previously allowed homeless detainees to apply for housing while in detention if they had nowhere to live when released. Charities maintain around 2,000 detainees who before this applied for support each year can no longer do so.