fix the empty generic.dictionary issue