How to config the GNOME app picker layout correctly?

The layout can be configured with org/gnome/shell/app-picker-layout and org/gnome/desktop/app-folders in dconf. It mostly works but GNOME usually refreshes the layout and messes up it. If I don’t configure it in dconf the layout won’t be changed.