fix finish editing

needed to handle in the flash callback