Fixed activity-detail query(`num_applied` and `num_selected` fields).