some fixes in Fem
Fix in color calculation