fix detail template