fixed mongodb version errors on save