Fixes configurable Material type bug for cloak