Fixed Material bug