fix text display problem folowing plot