Fixed 'Invalid Native Object' using retain() method on native object.