Fixed invalid response in MongoDB driver