Fixed self-recursive function parsing