fix problem with retina checking on Java 7