Fix for admin panel on non CMS pages