Fix display issue when editing metadata