Fix logging bug (order reversed)