fixed transparency bug in set_opacity/ on_color