tiny bugfix on object creation

I got an error after my first attempt to save a new Record… now it's working!
cheers