Removed use of firstObject so the app can be compiled with 10.8 SDK.