Structured Expression for Derived properties

Does anyone know how to fix this... thanks  : A table customization contains a derived property named total. The customization target is set to Class. A stereotype named newStereotype is applied to model elements with properties rows : Integer and columns : Integer. The derived property is expected to compute rows * columns, but the table column remains empty. 

Steps to Reproduce 

1. Create stereotype newStereotype. 

2. Add properties: - rows : Integer - columns : Integer 

3. Create table customization. 

4. Set customizationTarget = Class. 

5. Add derived property total : Integer. 

6. In expression, create Script operation. 

7. Under Script create two First operations: - First1 - First2 

8. Under First1 create Metachain Navigation: Class → Applied Stereotype → newStereotype → rows 

9. Under First2 create Metachain Navigation: Class → Applied Stereotype → newStereotype → columns 

10. Set Script language = Groovy. 

11. Use the following script: 

def r = First1 def c = First2 if (r == null || c == null) return null if (r instanceof Collection) r = r ? r[0] : null if (c instanceof Collection) c = c ? c[0] : null if (r == null || c == null) return null return r.toString().toInteger() * c.toString().toInteger() 

12. Save and reopen the model. 

13. Apply newStereotype to model elements and assign values. 

14. Open customized table and check column total