Fix preferences's screen dimensions.