Fix active class not applying to dynamically created colors

Just a small details, but the active class was not added on the newly created colors.