parlib: Fix the use-after-func issue