Fixing endpoint config