fixed the invalid type error about the DetailsInterface