Fix infinite loop in past events on home page block