Fix upper bound of generate and populate trigger regions