small bug in material object