fix horrible error; initalize num_prefixes
use fetch, find bug