Fixed undefined variable error

Sometimes nodejs crash with `Pa undefined`