Fix detail page error