removes methods that cause problem in ios 6.