Bug fix to how events are calculated for a setting