Fixed admin panel not appearing on some pages.