Fixed some issues in resource type for initializing replica sets.