fixed screen orientation for iOS
fixed crash when finishing set