diff --git a/migrations/5_remove_holding_accounts.coffee b/migrations/5_remove_holding_accounts.coffee
index 3e45d4160580183cf995409a0df0149710b1ac8a..494669859d2ca93ce855f500774136fc19701ad6 100644
--- a/migrations/5_remove_holding_accounts.coffee
+++ b/migrations/5_remove_holding_accounts.coffee
@@ -8,7 +8,7 @@ module.exports = HoldingAccountMigration =
 	DRY_RUN: true
 
 	findHoldingAccounts: (callback = (error, users) ->) ->
-		db.users.find({holdingAccount: true}, {holdingAccount: 1, email: 1}, callback)
+		db.users.find({holdingAccount: true, hashedPassword: { $exists: false }}, {holdingAccount: 1, email: 1}, callback)
 
 	deleteUserProjects: (user_id, callback = (error) ->) ->
 		# Holding accounts can't own projects, so only remove from