fix updating the text