fix for logger