fixed lookup by scan_num