correcting a bug introduced by myself during logging implementation