fix duplicated log messages