Fix BMS problem when agents had only one candidate and refactored some constants