Set material properly