fix modalview getting closed when dismissing alert [iOS 5]

fixes #27