bug fix for objectWithAttribute:value: