fix broken site scripts