Fix bug in camera selection, and in screen size detection.