Fixing some autorelease-related issues.