Fix minor bugs in base.html relating to models