Fix detection of unsuitable resolutions.