iphone fix for jiggle function