Fix foregroung equal to cursor