Fix several problems on mongodb : hidden activity - duplicated activity