Fix connect mongo issue