Fix custom class colours not being applied.