Fixed settings crash issue with resolution detection.