Fixed blocks breaking whilst logging

Fixed blocks breaking whilst logging