[FIXES] Corrected the relation beetwen materias and planes