Fixed not getting logs correctly