fixes a typo on logging