Fixed bugs for IS_IPAD/IS_IPHONE.