Fix bug in Object