fixed ARC bugs