fix update bug

must flush to see the updated info