fix print_object with user objects