Fix missing update when setting value using external script