fix spa routing