Fix bad extension support check