small fix for race condition

in case commands come in before mongoose responds