Fixed an bug in DeviceCaps. refs #818