Fixed error concerning TargetApi.