bugs with pagination in Events
fix bug 859 and other bugs with pagination in ORgs