Fix function spec find bug.