Make the project works under ARC

Fix an issue that prevents objects from getting Dealloced under ARC