amberc.js: fix wrong variable references