logger fixing
bugfixing