Fix updating preview in configuration