Fixed UIactivitycontroller bug