Change set() to setObject()