Fixed $site undefined warning