Clear up unuse 3rd-party plugins; Fixed bug for ios5 and lower