Fix the number of event in a queue