Fixed some bugs with AFFViewController.