Fix clicking modal background to close in IOS