Fixed crash on iphone with iOC 5.0 on login