fix find*ByCode return value