ascript: Fix typo in helper function.

Signed-off-by: Yeqiao Wang <ee07b291@gmail.com>