fix to material database reader