Problem accessing an object's value within an equation