Minor bug fix to object.h