Fix implicit save when lost focus