Fixed result logging bug.