Detail template fix