Fixed a bug in applyA that was introduced when we first vectorized.
Checked by upgrading and running testModules.