Fixed a bug with maxCompletions that had broken some (all?) contracts.