fix small screwup in marerial parse method