Fixed error with color to awt conversion