Reorder an assignment to fix logging its value