fix a bug in mongohouse