fix log collection