FLUID-4903: fixed primary schema merging order.