ascript: Fix bug.

Start fixing bugs introduced by commit 4a0dc0597
(ascript: Add the script.).

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