Fixed a few UI bugs for active materials