diff --git a/src/bp-loader.php b/src/bp-loader.php
index 0e533ff..0a0eb6e 100644
--- a/src/bp-loader.php
+++ b/src/bp-loader.php
@@ -617,9 +617,15 @@ class BuddyPress {
 			return;
 		}
 
-		// Sanity check 2 - Check if component is active before loading class.
-		// Skip if PHPUnit is running.
-		if ( 'core' !== $component && false === bp_is_active( $component ) && false === function_exists( 'tests_add_filter' ) ) {
+		/*
+		 * Sanity check 2 - Check if component is active before loading class.
+		 * Skip if PHPUnit is running, or BuddyPress is installing for the first time.
+		 */
+		if (
+			! in_array( $component, array( 'core', 'members' ) ) &&
+			! bp_is_active( $component ) &&
+			! function_exists( 'tests_add_filter' )
+		) {
 			return;
 		}
 
