Fix detail activity crash issue