Insert code for fix  bug for IOS8