fixed bug in log breaks