Change set() to setObject()

Fixes #3