#412 fixed flow of logger flow

Resolves #412