Fixed a bug where action sheet may have incorrect button index in the Objective-C implementation