Fix Bug where logger didn't work with blocks