fix updating of div contents