Fix TrySetResolution