Fixed print_entries() error