logs bug fix