Fixed ordering bug in logs