minor change. Replacing getStatespace() method with getStateSpace() from AbstractModel
PROBCORE-540 Fixed. The problem was that although the right css classes were being added to the formula, the old classes were never being removed. This meant that sometimes the color of the formula would freeze in the color red.