Fix log order