fixed CGRect on iOS.