m-gh-2276
fixed bugs for 3.8.18 (mongoose)
build