Fixed a crash and uncommented some code which is working just on iOS 6.