fix mongodb problems