fix bug in logs