Fixed bugs in iPad ID functions