Fix wrong transparent parsing in material