Fixed remaining trace() calls in AS