Fix the actionTimelineTest crash on mac platform