Fixed a bug with selectContracts(int) in DBH.