revise a bug in base.html