fixed absorb and extract errors in material class