material and rgb bug fixed