fix training detail view crash