diff --git a/client.mk b/client.mk
index b85223370388252dd1e05019392ab37f35990213..ca510c0d8fe5d538e1a1e4c60efdb78ddcc467dd 100644
--- a/client.mk
+++ b/client.mk
@@ -412,7 +412,7 @@ endif
 # checkout last, because if you check it out first, there is a sticky
 # tag left over from checking out the LDAP SDK, which causes files in
 # the root directory to be missed.
-MOZ_MODULE_LIST := $(sort $(filter-out SeaMonkeyAll,$(MOZ_MODULE_LIST))) $(filter SeaMonkeyAll,$(MOZ_MODULE_LIST))
+MOZ_MODULE_LIST := $(sort $(filter-out SeaMonkeyAll,$(MOZ_MODULE_LIST))) $(firstword $(filter SeaMonkeyAll,$(MOZ_MODULE_LIST)))
 
 MODULES_CO_FLAGS := -P
 ifdef MOZ_CO_FLAGS