more assert to avoid https://github.com/fotonauts/MongoHub-Mac/issues/125