Fixed bug in executor for number of groups to reset