Fixed bug in iOS disable method