Few bugfixes to eventful and rendermax
Fixed incorrect loop bounds for eventful.
Fixed incorrect syntax for items in rendermax.