Fix flat-bottomed position restraints with multiple ranks