Fixed the Kappa to work with the background color