CSS Class assignment correction # 2.

Ensure previous CSS classes are not appended and reinitialized in the foreach loop.