Fix handling of transparent color