fix retina condition