fix logs bug