fix infinite scroll in compact mode