update log detail && fix bugs