Fix SPA syntax warnings. Fixes #472.