Fixed log ordering when filter is applied