FIX: Crash on selecting depot in some cases.