minor fixes

- detector fix
- mongoDataSource fix
- memoryDataSource fix