fixed an error in spa_app