fix to attributes of object when creating them