Optimized admin.extensions, fixed #1310.