Fix empty name issue on detail page