fixed a bug in base.py, details template