fix mongodb server detection