Fixed segmentation fault(turned on automatic reference counting).