Fixing preferences insertion to work again with post arrays