Fix a bug in youtube plugin that don save the object resource properly