Fixed bug around CADisplayLink