Fix log order error