Fixed logging helper bug